package com.j180.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;

import java.io.Serializable;
import java.time.LocalDate;
 
public class StoGoods implements Serializable {
    //门店商品id
    private Integer id;
    //门店商品名称
    private String name;
    //门店商品类型
    private String type;
    //门店商品材质或制作方法
    private String material;
    //门店商品适用规格
    private String applicable;
    //门店商品专属规格
    private String exclusive;
    //门店商品包装规格
    private String packingSize;
    //门店商品口味
    private String flavor;
    //门店商品特殊功用
    private String function;
    //门店商品产地
    private String origin;
    //门店商品出厂日期
    @JsonSerialize(using = LocalDateSerializer.class)
    private LocalDate dateOfPro;
    //门店商品保质期
    private String expDate;
    //供应商编号
    private Integer supId;
    //特色说明
    private String explain;
    //零售价格
    private double price;
    //图片
    private String pic;
    //门店
    private Store store;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getApplicable() {
        return applicable;
    }

    public void setApplicable(String applicable) {
        this.applicable = applicable;
    }

    public String getExclusive() {
        return exclusive;
    }

    public void setExclusive(String exclusive) {
        this.exclusive = exclusive;
    }

    public String getPackingSize() {
        return packingSize;
    }

    public void setPackingSize(String packingSize) {
        this.packingSize = packingSize;
    }

    public String getFlavor() {
        return flavor;
    }

    public void setFlavor(String flavor) {
        this.flavor = flavor;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public LocalDate getDateOfPro() {
        return dateOfPro;
    }

    public void setDateOfPro(LocalDate dateOfPro) {
        this.dateOfPro = dateOfPro;
    }

    public String getExpDate() {
        return expDate;
    }

    public void setExpDate(String expDate) {
        this.expDate = expDate;
    }

    public Integer getSupId() {
        return supId;
    }

    public void setSupId(Integer supId) {
        this.supId = supId;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }

    @Override
    public String toString() {
        return "StoGoods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", material='" + material + '\'' +
                ", applicable='" + applicable + '\'' +
                ", exclusive='" + exclusive + '\'' +
                ", packingSize='" + packingSize + '\'' +
                ", flavor='" + flavor + '\'' +
                ", function='" + function + '\'' +
                ", origin='" + origin + '\'' +
                ", dateOfPro=" + dateOfPro +
                ", expDate='" + expDate + '\'' +
                ", supId=" + supId +
                ", explain='" + explain + '\'' +
                ", price=" + price +
                ", pic='" + pic + '\'' +
                ", store=" + store +
                '}';
    }
}
